<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="http://www.ufida.com/multilang" prefix="ml" %>
<%@ taglib uri="http://www.ufida.com/lfw" prefix="lfw" %>
<%@ taglib uri="http://www.ufida.com/uif" prefix="uif" %>
<html>
	<head>
		<lfw:base/>
		<lfw:head/>
		<uif:import/>
		<script type='text/javascript' src='<%= "code/" + request.getParameter("pageId")%>'></script>
	</head>
	<body bottommargin="0" topmargin="0" leftmargin="0" rightmargin="0" scroll=no onload="pageBodyScript()">
		<%
			String billId = request.getParameter("billId");
			String billType = request.getParameter("billType");
			billType = nc.lfw.util.StringUtil.convertToCorrectEncoding(billType);
			billType = nc.lfw.util.JsURLEncoder.encode(billType,"UTF-8");
			pageContext.setAttribute("billId", billId);
			pageContext.setAttribute("billType", billType);
		%>
		<lfw:pageModel className="nc.lfw.core.model.ConfigurationPageModel">
			<lfw:layout type="flowv">
				<lfw:layoutPanel height="26" align="center">
					<span>${ml:trans('yer_pfinfo_title')}</span>
				</lfw:layoutPanel>
				<lfw:layoutPanel height="150"> 
					<div style="width:100%;height:100%;border-top:1px solid #7F9DB9;border-bottom:1px solid #7F9DB9">
						<lfw:grid id="flowHistroy"/>
					</div>
				</lfw:layoutPanel>
				<lfw:layoutPanel height="160" width="440">
					<div style="width:100%;height:100%;overflow:auto"><img src="wfimg?billType=${billType}&billId=${billId}" /></div>
				</lfw:layoutPanel>
				<lfw:layoutPanel height="40" align="center">
					<lfw:button id="pfInfo_cancelBt"/>
				</lfw:layoutPanel>
			</lfw:layout>
		</lfw:pageModel>
	</body>
</html>
<script>
	function externalInit()
	{
	}
	function PfInfoRender(){}
	PfInfoRender.render = function(rowIndex, colIndex, value, header, cell)
	{	
		var pfStateArray = ["${ml:trans('yer_pfinfo000')}","${ml:trans('yer_pfinfo001')}","${ml:trans('yer_pfinfo002')}","${ml:trans('yer_pfinfo003')}","${ml:trans('yer_pfinfo004')}"]; 
		cell.style.overflow = "hidden";
		cell.style.textOverflow = "ellipsis";
		cell.style.cursor = "default";
		cell.style.textAlign = "center";
		cell.innerHTML  = "<center>" + pfStateArray[value] + "<center>" ;
	}
	function PfResultRender(){}
	PfResultRender.render = function(rowIndex, colIndex, value, header, cell)
	{	
		cell.style.overflow = "hidden";
		cell.style.textOverflow = "ellipsis";
		cell.style.cursor = "default";
		cell.style.textAlign = "center";
		var  result = '';
		if(value == 'Y') result = "${ml:trans('yer_pfinfo005')}";
		else if(value == 'N') result = "${ml:trans('yer_pfinfo006')}";
		else if(value == 'R') result = "${ml:trans('yer_pfinfo007')}";
		cell.innerHTML  = "<center>" + result + "<center>" ;
	}
</script>	